package andrei.mower2.io.exceptions;

import andrei.mower2.main.i18n.MessageUtils;

@SuppressWarnings("serial")
public class UnparsableLineException extends Exception {

	public UnparsableLineException(long lineNumber, String message, Throwable cause) {
		super(MessageUtils.getMessage("warn.io.unparsableLine", lineNumber) + ": "+message, cause);
	}
	
	public UnparsableLineException(long lineNumber, String message) {
		super(MessageUtils.getMessage("warn.io.unparsableLine", lineNumber) + ": "+message);
	}
	
	public UnparsableLineException(long lineNumber, Throwable cause) {
		super(MessageUtils.getMessage("warn.io.unparsableLine"), cause);
	}
	
	public UnparsableLineException(long lineNumber) {
		super(MessageUtils.getMessage("warn.io.unparsableLine", lineNumber));
	}
}
